﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="SampleWebsite._Default" %>
<%@ Register Assembly="GoogleLanguage.WebControls" Namespace="GoogleLanguage.WebControls" TagPrefix="glc" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Google Language - Sample Website</title>
</head>
<body>
    <form id="form1" runat="server">
    <glc:LanguageManager ID="LanguageManager1" runat="server" />
     
    <div>
    <h1>Google Language - Sample Website</h1>
    
    <h3>Examples: Literals</h3>
    <p><glc:Literal ID="Literal1" runat="server" Text="How are you?" DestinationLanguage="JAPANESE" /></p>
    <p><glc:Literal ID="Literal2" runat="server" Text="I am fine." DestinationLanguage="RUSSIAN" /></p>
    <p><glc:Literal ID="Literal3" runat="server" Text="Enjoy your dinner." DestinationLanguage="CHINESE_TRADITIONAL" /></p>
    <p><glc:Literal ID="Literal4" runat="server" Text="I love music!" DestinationLanguage="ARABIC" /></p>
    <p><glc:Literal ID="Literal5" runat="server" Text="Do you like music too?" DestinationLanguage="FRENCH" /></p>
    
    <h3>Example: Translators</h3>
    <p>
        <asp:Label ID="Label1" runat="server" Text="Today is Wednesday." />
        <glc:Translator ID="Translator1" runat="server" TargetControlID="Label1" DestinationLanguage="KOREAN" />
    </p>
    <p>
        <asp:TextBox ID="TextBox1" runat="server" Text="Important Notice" />
        <glc:Translator ID="Translator2" runat="server" TargetControlID="TextBox1" DestinationLanguage="GERMAN" />
    </p>
    <p>
        <asp:TextBox ID="TextBox2" runat="server" TextMode="MultiLine" Text="How are you? I am fine. Enjoy your dinner." />
        <glc:Translator ID="Translator3" runat="server" TargetControlID="TextBox2" DestinationLanguage="GREEK" />
    </p>
    <p>
        <asp:Button ID="Button1" runat="server" Text="Hello World" />
        <glc:Translator ID="Translator4" runat="server" TargetControlID="Button1" DestinationLanguage="SPANISH" />
    </p>
    <p>
        <asp:CheckBox ID="CheckBox1" runat="server" Text="Make sure you eat your breakfast" />
        <glc:Translator ID="Translator5" runat="server" TargetControlID="CheckBox1" DestinationLanguage="HINDI" />
    </p>
    <p>
        <asp:HyperLink ID="HyperLink1" runat="server" Text="Go to search engine" NavigateUrl="http://www.google.com/" Target="_blank" />
        <glc:Translator ID="Translator6" runat="server" TargetControlID="HyperLink1" DestinationLanguage="HUNGARIAN" />
    </p>
    <p>
        <asp:LinkButton ID="LinkButton1" runat="server" Text="Go to search engine" />
        <glc:Translator ID="Translator7" runat="server" TargetControlID="LinkButton1" DestinationLanguage="HEBREW" />
    </p>
    </div>  
    </form>
</body>
</html>
